package com.wxmp.wxcms.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.wxmp.wxcms.domain.MiniAppCorpBaseInfo;
import com.wxmp.wxcms.mapper.MiniAppImagesDao;
import com.wxmp.wxcms.mapper.MiniAppCorpBaseInfoDao;
import com.wxmp.wxcms.service.MiniAppCorpBaseInfoService;


@Service
@Transactional
public class MiniAppCorpBaseInfoServiceImpl implements MiniAppCorpBaseInfoService{
	
	@Resource
    private MiniAppCorpBaseInfoDao corpBaseInfoDao;
	
	@Resource
    private MiniAppImagesDao imagesDao;
	
	@Override
	public List<MiniAppCorpBaseInfo> getCorpListByPage(MiniAppCorpBaseInfo entity){
		return corpBaseInfoDao.getCorpListByPage(entity);
	}
	
	public String getCorporationDetail(String id) {
		return "";
	}
	
	@Override
	public int add(MiniAppCorpBaseInfo entity) {
		//插入到corp_base表里
		return corpBaseInfoDao.add(entity);
	}
	
	@Override
	public int deleteById(String id) {
		return corpBaseInfoDao.deleteById(id);
	}
	
}
